package com.example.springboot.exception;

import lombok.Getter;

/**
 * 功能：
 * 作者：刘涵茹
 * 日期：2024/2/20 16:22
 */

@Getter//处理变量code
public class ServiceException extends RuntimeException{

    private final String code;

    public ServiceException(String msg){
        super(msg);
        this.code = "500";
    }
    public ServiceException(String code, String msg){
        super(msg);
        this.code = code;
    }


}
